package com.ruoyi.industryfrontend.mapper;

import com.ruoyi.industryfrontend.domain.ProjectApartment;
import com.ruoyi.industryfrontend.domain.SpaceIndustry;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公寓Mapper接口
 *
 * @author MagicCube
 * @date 2023-05-08
 */
@Mapper
public interface ProjectApartmentMapper
{
    /**
     * 查询公寓
     *
     * @param id 公寓主键
     * @return 公寓
     */
    public ProjectApartment selectProjectApartmentById(Long id);

    /**
     * 查询公寓列表
     *
     * @param projectApartment 公寓
     * @return 公寓集合
     */
    public List<ProjectApartment> selectProjectApartmentList(ProjectApartment projectApartment);
    public List<ProjectApartment> selectProjectApartmentListz(ProjectApartment projectApartment);

    /**
     * 新增公寓
     *
     * @param projectApartment 公寓
     * @return 结果
     */
    public int insertProjectApartment(ProjectApartment projectApartment);

    /**
     * 修改公寓
     *
     * @param projectApartment 公寓
     * @return 结果
     */
    public int updateProjectApartment(ProjectApartment projectApartment);

    /**
     * 删除公寓
     *
     * @param id 公寓主键
     * @return 结果
     */
    public int deleteProjectApartmentById(Long id);

    /**
     * 批量删除公寓
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProjectApartmentByIds(Long[] ids);

    List<SpaceIndustry> selectProjectBuildingBySpaceIds(List<String> apartment);

    ProjectApartment selectProjectApartmentByNumber(@Param("spaceId") String spaceId);

    int deleteProjectApartmentBySerialNumber(String spaceId);
}
